package com.example.service;

import com.example.pojo.entity.PostIndex;
import org.springframework.data.elasticsearch.core.SearchHit;
import org.springframework.data.elasticsearch.core.SearchHits;

import java.util.List;

/**
 * @author 小岁
 * @version 2023/10/24 21:59
 */
public interface PostsIndexService {

    public void initIndex();

    SearchHits<PostIndex> findByPosNameOrCompanyNames(String posName, String companyName);

    List<SearchHit<PostIndex>> findByPosNameOrCompanyNameOrPosDescription(String posName, String companyName,String posDescription);

//    List<SearchHit<PostIndex>> findByPosNameOrCompanyName(String search);

    List<SearchHit<PostIndex>> findByPosDescription(String posDescription);

    List<SearchHit<PostIndex>> findByJrIdAndPosNameOrPosDescriptionOrPosKeyword(Integer jrId,String posName,String posDescription,String posKeyword);

    List<SearchHit<PostIndex>> findByIdOrPosDescription(String id,String posDescription);

}
